package test.chain.beanbyabstract.impl;

import org.springframework.stereotype.Component;

import test.chain.beanbyabstract.RuleHandler;

@Component
public class TotalPriceRuleHandler extends RuleHandler {

	@Override
	public boolean isMatch(int[] l, int[] auditRule) {
		System.out.println("TotalPriceRuleHandler||");
		boolean match = false;
		if (l[2]==auditRule[2]) {
			match = true;
		}
		return match ? nextHandler.isMatch(l, auditRule) : match;
	}

}